<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
        <table style="width: 603px">
            <tr>
                <td>
        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
            <table style="width: 605px">
                <tr>
                    <td style="width: 54px; height: 21px" valign="top" align="left">
                        <asp:Literal ID="Literal2" runat="server" Text="Keyword"></asp:Literal></td>
                    <td style="width: 5px; height: 21px">
                        :</td>
                    <td style="width: 257px; height: 21px" align="left">
                        <asp:TextBox ID="txtKeyword" runat="server" Width="276px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtKeyword"
                            ErrorMessage="RequiredFieldValidator">Please enter keyword</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="width: 54px" align="left">
                        <asp:Label ID="Label2" runat="server" Text="Price"></asp:Label></td>
                    <td style="width: 5px">
                        :</td>
                    <td nowrap="nowrap" style="width: 257px" align="left">
                        <asp:TextBox ID="txtPriceFrom" runat="server" Width="88px"></asp:TextBox>
                        To<asp:TextBox ID="txtPriceTo" runat="server" Width="88px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 54px" align="left">
                    </td>
                    <td style="width: 5px">
                    </td>
                    <td nowrap="nowrap" style="width: 157px" align="left">
                        <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
                        <input id="Reset1" type="reset" value="Reset" /></td>
                </tr>
            </table>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <table style="width: 17%">
                    <tr>
                        <td>
                            <table width="100%">
                                <tr>
                                    <td style="width: 83px; height: 19px">
                                        <strong>Resumes</strong>
                                    </td>
                                    <td style="width: 101px; height: 19px; text-align: right">
                                        <asp:LinkButton ID="lkbBackToSearch" runat="server" OnClick="lkbBackToSearch_Click">Back To Search</asp:LinkButton></td>
                                    <td style="width: 101px; color: #000000; height: 19px; text-align: right; text-decoration: underline" align="right">
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/YourCart.aspx" Width="222px">View Your Shopping Cart</asp:HyperLink></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <hr width="100%" />
                            &nbsp;<asp:Literal ID="Literal1" runat="server"></asp:Literal></td>
                    </tr>
                    <tr>
                        <td style="width: 347px" valign="top">
                            <asp:DataList ID="DataList1" runat="server" OnItemCommand="DataList1_ItemCommand"
                                RepeatColumns="2" RepeatDirection="Horizontal" Width="100%" OnItemDataBound="DataList1_ItemDataBound">
                                <ItemTemplate>
                                    <table style="width: 218px">
                                        <tr>
                                            <td style="width: 73px" valign="top" align="left">
                                                Name</td>
                                            <td style="width: 9px" valign="top">
                                                :</td>
                                            <td style="width: 257px" valign="top" align="left">
                                                <asp:Label ID="lblID" runat="server" Font-Bold="True" Text='<%# Bind("ItemID") %>'
                                                    Width="30px" Visible="False"></asp:Label>
                                                <asp:HyperLink ID="hyperLinkName" runat="server" Width="129px" Text='<%# Bind("ItemName") %>' ></asp:HyperLink></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 73px" valign="top" align="left">
                                                ISBN</td>
                                            <td style="width: 9px" valign="top">
                                                :</td>
                                            <td style="width: 257px" valign="top" align="left">
                                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("ISBN") %>' Width="130px"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 73px" valign="top" align="left">
                                                SalesPrice</td>
                                            <td style="width: 9px" valign="top">
                                                :</td>
                                            <td style="width: 257px" valign="top" align="left">
                                                <asp:Label ID="lblPrice" runat="server" Text='<%# Bind("SalesPrice") %>' Width="116px"></asp:Label></td>
                                        </tr>
                                    </table>
                                    &nbsp;<br />
                                    <asp:Button ID="btnAdd" runat="server" Text="Add to Cart" />&nbsp;<br />
                                    <br />
                                    &nbsp;
                                </ItemTemplate>
                            </asp:DataList></td>
                    </tr>
                    <tr>
                        <td>
                            <table align="right" style="width: 100%">
                                <tr>
                                    <td align="left" colspan="2">
                                        <hr width="100%" />
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" style="width: 36%; height: 21px">
                                        Page:
                                        <asp:Label ID="lblPage" runat="server" Font-Name="verdana" Font-Names="verdana" Font-Size="10pt"
                                            Width="21px">1</asp:Label>of &nbsp;
                                        <asp:Label ID="lblPages" runat="server" Font-Name="verdana" Font-Names="verdana"
                                            Font-Size="10pt" Width="30px">1</asp:Label>
                                        &nbsp;&nbsp; &nbsp;&nbsp;
                                    </td>
                                    <td nowrap="nowrap" style="font-size: 12pt; width: 24%; font-family: Times New Roman;
                                        height: 21px; text-align: right">
                                        <asp:LinkButton ID="linkFirst" runat="server" OnClick="linkFirst_Click">First</asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="linkPrevious" runat="server" OnClick="linkPrevious_Click">Previous</asp:LinkButton>
                                        &nbsp;
                                        <asp:LinkButton ID="linkNext" runat="server" OnClick="linkNext_Click">Next</asp:LinkButton>&nbsp;
                                        <asp:LinkButton ID="linkLast" runat="server" OnClick="linkLast_Click">Last</asp:LinkButton></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                &nbsp; &nbsp;</asp:View>
        </asp:MultiView>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
